﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Kaidou.Model;
using Kaidou.Persister;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using Kaidou.Util;
using Kaidou.Bll;

public partial class seal_seal_report_delete : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        LoginModel loginModel = (LoginModel)Session["loginModel"];

        if (loginModel.isKumiaiin() && sessioncontrol.control())
        {
            Response.Redirect("../control.aspx");
        }
    }

    protected void delete_confirm(object sender, EventArgs e)
    {
        TRN_ReportManager manager = new TRN_ReportManager();
        Report rpt = (Report)Session["report"];
        manager.deleteReport(rpt.getReportH().ReportNo, (LoginModel)Session["loginModel"]);
       // Session["back"] = 1;
        Response.Redirect("seal_report_search.aspx");
    }

    
}
